// 引入及注册
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 注册插件
import componentPlugin from '@/components'
import directivePlugin from '@/directives'
// 重置样式
import 'normalize.css'
// 共有样式
import '@/styles/common.less'

// store.commit('user/setName')

// 链式调用的形式 由createApp(App)创建实例对象后 用use方法调用注册的插件
createApp(App).use(store).use(router).use(componentPlugin).use(directivePlugin).mount('#app')
